PYTHON-5569: [Build Failure] Spec Resync job is failing silently#2553
PYTHON-5569: [Build Failure] Spec Resync job is failing silently#2553sleepyStick merged 10 commits intomongodb:masterfrom
Conversation
…ust omitting the tests)
There was a problem hiding this comment.
this is to remove files in test/discovery_and_monitoring/errors/pre-42-*.json
(I thought the ** was a recursive wildcard? but every time i ran the resync spec script those files would pop up so i added it explicitly?)
There was a problem hiding this comment.
I recommend using find instead. I'm not a bash expert but the rules for ** aren't like in Path/.glob.
Try: find /$PYMONGO /test -type f -name 'pre-42-*.json' -delete
Note that -f means that this isn't going to match directories.
There was a problem hiding this comment.
ooo good idea! I've replaced the two rms with the find instead. Thanks~
| @@ -1,5 +1,6 @@ | |||
| #!/usr/bin/env bash | |||
| # Run spec syncing script and create PR | |||
| set -eu | |||
There was a problem hiding this comment.
this should make errors more visible to us
| "single", | ||
| + "sharded" | ||
| - "sharded", | ||
| - "sharded-replicaset" |
There was a problem hiding this comment.
We already did this ticket but for whatever reason the spec repo still has this one instance of sharded-replicaset so we're applying this patch to keep it out of our tests. (I've made a comment on the drivers ticket asking why its still in the spec repo)
caseyclements
left a comment
There was a problem hiding this comment.
Apologies for the delay. I had a cluster of partial seizures last week so needed some rest.
There was a problem hiding this comment.
I recommend using find instead. I'm not a bash expert but the rules for ** aren't like in Path/.glob.
Try: find /$PYMONGO /test -type f -name 'pre-42-*.json' -delete
Note that -f means that this isn't going to match directories.
There was a problem hiding this comment.
Do these patches belong in this PR?
There was a problem hiding this comment.
The spec sync was failing and I figured it was easier to fix it in this PR than to put it off and fix it in the next spec sync PR. (running the spec sync script locally naturally produced these changes and since I was on greener build last week I decided to take the time to straighten them out.) I saw it as "catching" up on what the spec sync for the past few weeks should've been like and was hoping to make it easier for the next person on greener build.
If you prefer that they not be added in this PR, I'm happy to take them out.
There was a problem hiding this comment.
I'm personally ok with this approach. I'm not a stickler and think velocity is often more important than paper trail.
There was a problem hiding this comment.
Same question on these new tests. I take it that the sync was failing and these just piled up?
All good, hope you go the rest you needed and that you're feeling better now! |
There was a problem hiding this comment.
I'm personally ok with this approach. I'm not a stickler and think velocity is often more important than paper trail.
Summary
Resync Spec task was silently failing and not generating any PRs.
https://jira.mongodb.org/browse/PYTHON-5569
Changes in this PR
set -euto the beginning of the bash file which should fail the task if the python script fails.Test Plan
I ran the script locally and verified desired behaviour. See below:
before my changes:
after my changes:
Screenshots (optional)
See above?
Checklist
Do not delete the items provided on this checklist
Checklist for Author
Checklist for Reviewer {@primary_reviewer}
Focus Areas for Reviewer
List any complex portion of code you believe needs additional scrutiny and explain why.
see comments :)